App Intents: publish and schedule post intents#25756
Draft
crazytonyli wants to merge 5 commits into
Draft
Conversation
Collaborator
Generated by 🚫 Danger |
Contributor
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 33320 | |
| Version | PR #25756 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | de06546 | |
| Installation URL | 1b90r9n6mrrfg |
Contributor
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 33320 | |
| Version | PR #25756 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | de06546 | |
| Installation URL | 45qlpr3j61mf8 |
crazytonyli
force-pushed
the
task/new-siri-integration-M3
branch
from
July 7, 2026 03:59
447a9ee to
6008842
Compare
crazytonyli
force-pushed
the
task/new-siri-integration-M4
branch
2 times, most recently
from
July 9, 2026 01:45
75cf8f1 to
401816f
Compare
crazytonyli
force-pushed
the
task/new-siri-integration-M3
branch
from
July 9, 2026 01:45
6008842 to
62d4c90
Compare
Adds eligibility, blocker, and update-parameter helpers that let App Intents publish or schedule server-synced posts. Posts with unsaved local edits, pages, local-only posts, and posts the user's role cannot publish are refused up front, using the same capability check and nil-capabilities allowance as the in-app publish affordances, rather than surfacing a raw server rejection after confirmation. Publishing a previously scheduled post moves its date to now through a RemotePostUpdateParameters helper shared with PostCoordinator.save, covering the private-publish case the earlier inline copies missed. The publishable status list is shared between the eligibility check and the fetch predicate.
A save that skips the UIKit flow used to skip the coordinator's non-UI side effects too: the dashboard notifications that refresh the posts cards, the app-rating significant event, and the post-save error analytics. The dormant didPublish helper now owns the success block so non-UI callers can emit them, leaving only the alert and notice UI in the UIKit path. The not-found cleanup from the in-app alert flow is shared so a post permanently deleted on the server no longer survives as a local ghost, and it now also removes the post's Spotlight entry, which was previously leaked. The scheduled-post publish date coercion moves to the shared RemotePostUpdateParameters helper.
The publish and schedule intents confirm before saving, revalidate eligibility after confirmation, and surface the resulting server state or error. They share the existing PostCoordinator side effects and expose English Siri phrases directly from their App Shortcut declarations. The existing Publish Date translation is reused; the remaining new strings use English defaults.
crazytonyli
force-pushed
the
task/new-siri-integration-M4
branch
from
July 22, 2026 05:55
401816f to
de06546
Compare
crazytonyli
force-pushed
the
task/new-siri-integration-M3
branch
from
July 22, 2026 05:55
62d4c90 to
7b6b1ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Note
This PR will be merged after #25755